package top.chmin.project.cloud.common.entity;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * chmin
 * 2023/12/15 9:09
 * cloud-builder
 */
@Slf4j
@Getter
public class Condition {

    String sql = "";
    List<Object> valueList = new ArrayList<>();

    public Condition setSql(String sql) {
        log.info("sql: \n{}", sql);
        this.sql = sql;
        return this;
    }

    public Condition setValueList(List<Object> valueList) {
        log.info("valueList: \n{}", valueList);
        this.valueList = valueList;
        return this;
    }
}
